scalar_projection Function

public pure function scalar_projection(x, y) result(rst)

Computes the projection of vector x onto vector y. The scalar projection is defined such that .

Arguments

Type IntentOptional Attributes Name
real(kind=real64), intent(in), dimension(:) :: x

The vector to project.

real(kind=real64), intent(in), dimension(size(x)) :: y

The vector onto which x should be projected.

Return Value real(kind=real64)

The scalar projection of x onto y.


Contents